package de.koller.zero.arch;

import de.koller.oceanFramework.thread.buffer.Buffer;

public class CommandBuffer {
	
	private final Buffer<ICommand> buffer = new Buffer<>();
	
	public void sendCommand( ICommand command ) {
		buffer.push( command );
	}
	
	protected ICommand getCommand() {
		return buffer.pop();
	}
	
}
